﻿using Net.Helper;
using System;

namespace GameCore
{
    [Serializable]
    public class AssetInfo
    {
        public string AssetPath { get; set; }
        [Newtonsoft_X.Json.JsonIgnore] public string PackageName => assetPackage.Name;
        public string AssetBundleName { get; set; }
        public string MD5 { get; set; }
        [Newtonsoft_X.Json.JsonIgnore] public string AssetBundlePath => $"{Global.Config.AssetBundlePath}/{PackageName}/{AssetBundleName}";

        internal AssetPackage assetPackage;

        public override string ToString()
        {
            return AssetPath;
        }
    }
}